class NewsStatus < ActiveRecord::Base
  validates :title, :uniqueness => true
  
  has_many :newses
  
  def self.get(status)
    @status = NewsStatus.where(:title => status)
    @status.first
  end
  
end
